package com.shuai.frame.fault.retry.impl;

import com.shuai.frame.fault.retry.RetryStrategy;
import com.shuai.frame.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * @author bxs
 * @version 1.0
 * @Date 2024/7/28
 * 不重试策略
 */
public class NoRetryStrategyImpl implements RetryStrategy {

    @Override
    public RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception {
        return callable.call();
    }
}
